<template>
  <div class="special">
    <h3>专题精选</h3>
    <van-swipe :loop="false" :width="300" :show-indicators="false">
      <van-swipe-item v-for="item in topicList" :key="item.id">
        <div class="box">
          <img v-lazy="item.item_pic_url" alt="" />
          <p class="p1">
            {{ item.title }}
            <span>{{ item.price_info | text }}</span>
          </p>
          <p class="p2">{{ item.subtitle }}</p>
        </div>
      </van-swipe-item>
    </van-swipe>
  </div>
</template>
<script>
export default {
  name: "",
  props: ["topicList"],
  data() {
    return {};
  },
  computed: {},
  components: {},
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style lang="less" scoped>
.special {
  padding-right: 15px;
  h3 {
    font-size: 20px;
    text-align: center;
    height: 50px;
    line-height: 50px;
  }
  .box {
    // width: 300px;
    height: 280px;
    margin-left: 15.5px;
    img {
      width: 100%;
      height: 200px;
    }
    p {
      font-size: 16px;
      width: 93%;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .p1 {
      height: 40px;
      line-height: 40px;
      span {
        color: #8b0000;
      }
    }
    .p2 {
      height: 24px;
      line-height: 24px;
    }
  }
}
</style>
